package com.chuangke.file.model;

import org.springframework.web.multipart.MultipartFile;

import com.alibaba.fastjson.annotation.JSONField;


public class FileChunk extends FileBrief {
	
	
    private static final long serialVersionUID = 1L;

	private Integer chunkNumber;// 当前文件块，从1开始

	private Long chunkSize;// 分块大小

	private Long currentChunkSize;// 当前分块大小

	@JSONField(serialize = false)
	private MultipartFile file;

	public Integer getChunkNumber() {
		return chunkNumber;
	}

	public void setChunkNumber(Integer chunkNumber) {
		this.chunkNumber = chunkNumber;
	}

	public Long getChunkSize() {
		return chunkSize;
	}

	public void setChunkSize(Long chunkSize) {
		this.chunkSize = chunkSize;
	}

	public Long getCurrentChunkSize() {
		return currentChunkSize;
	}

	public void setCurrentChunkSize(Long currentChunkSize) {
		this.currentChunkSize = currentChunkSize;
	}

	public MultipartFile getFile() {
		return file;
	}

	public void setFile(MultipartFile file) {
		this.file = file;
	}

}
